﻿<s:SurfaceUserControl x:Class="ENMAX_ArcGIS.TroublePinLayer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="http://schemas.microsoft.com/surface/2008"
                      xmlns:src="clr-namespace:ENMAX_ArcGIS">

    <s:SurfaceUserControl.Resources>


        <Style x:Key="TroublePin" TargetType="{x:Type src:TroubleTicketPin}" >
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type src:TroubleTicketPin}" >
                        <Grid>
                            <Ellipse Stroke="{TemplateBinding Property=BorderBrush}" StrokeThickness="{TemplateBinding Property=BorderThickness}" Fill="{TemplateBinding Property=Background}" Width="20" Height="20"/>
                            <Ellipse Stroke="{TemplateBinding Property=Foreground}"  StrokeThickness="2" Width="20" Height="20"/>
                        </Grid>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
        
    </s:SurfaceUserControl.Resources>



    <s:ScatterView x:Name="TroublePinCanvas">
        <s:ScatterView.LayoutTransform>
            <RotateTransform Angle="90"/>
        </s:ScatterView.LayoutTransform>
        <!--<s:SurfaceButton Background="Red" Style="{DynamicResource TroublePin}" Canvas.Left="227.5" Canvas.Top="30" Width="30" ContactTapGesture="SurfaceButton_ContactTapGesture" />-->
    </s:ScatterView>


</s:SurfaceUserControl>
